interface FormItemProps {
  id?: number;
  /** 用于判断是`新增`还是`修改` */
  title: string;
  higherDeptOptions?: Record<string, unknown>[];
  parentId?: number;
  nickname?: string;
  username?: string;
  password?: string;
  phone?: string | number;
  email?: string;
  gender?: string | number;
  status?: string | number;
  department?: {
    id?: number;
    name?: string;
  };
  remark?: string;
  ordinal?: number;
  roles?: Array<object>;
}
interface FormProps {
  formInline: FormItemProps;
}

interface RoleFormItemProps {
  username?: string;
  nickname?: string;
  /** 角色列表 */
  roleOptions?: any[];
  /** 选中的角色列表 */
  ids?: Record<number, unknown>[];
}
interface RoleFormProps {
  formInline: RoleFormItemProps;
}

export type { FormItemProps, FormProps, RoleFormItemProps, RoleFormProps };
